import QtQuick 2.0

Item{
    property alias hingeDataVisible: hingeData.visible

    anchors.fill: parent
    //左转向灯
    TurnLight{
        id: turnLeftLight
        visible: can_manager.left_turn_light ? true : false
        anchors.verticalCenter: parent.verticalCenter
    }

    // 右转向灯
    TurnLight{
        id: turnRightLight
        isLeft: false
        visible: can_manager.right_turn_light ? true : false
        anchors.verticalCenter: parent.verticalCenter
        anchors.right: parent.right
        anchors.rightMargin: 120
    }

    // 铰接数据
    HingeData{
        id: hingeData
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.bottom: mrData.top
        anchors.bottomMargin: 20
        currentAngle: can_manager.hinge_angle_indication.toFixed(0)
//        visible: swipeView.currentIndex == 3
    }

    // 三维铲刀动画
    MRData{
        id: mrData
//        visible: swipeView.currentIndex==3
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.bottom: bladeData.top
        anchors.bottomMargin: 5
    }

    // 铲刀数据
    BladeData{
        id: bladeData
        anchors.bottom: parent.bottom
//        visible: swipeView.currentIndex==3
    }

}

